//引入需要用到的页面组件 
//使用 react 中的懒加载 lazy
import {lazy} from 'react'
const Xiaoce = lazy(()=>import('~/pages/xiaoce/xiaoce'))
const Home = lazy(()=>import ('~/pages/home/home'))
const FeiDian = lazy(()=>import ('~/pages/feidian/feidian'))
const HuaTi = lazy(()=>import ('~/pages/huati/huati'))
const Notfound = lazy(()=>import ('~/pages/404/404'))
let routers = [
    {
        path:"/home",
        com:Home,
        exact:true
    },
    {
        path:"/feidian",
        com:FeiDian
    },
    {
        path:"/huati",
        com:HuaTi
    },
    {
        path:"/huodong",
        com:Notfound
    },
    {
        // 1：默认 取第一个标签
        path:"/xiaoce/:ids",
        com:Xiaoce
    }
]
export default routers;